/**
 * 
 */
package com.seedwill.common.meta.result;

/**
 * 结果
 * @author kdyi
 *
 */
public class Result {
	
	public static Result defaultSucessResult(){
		return new Result(true);
	}
	public static Result defaultFailResult(){
		return new Result(false);
	}
	/**
	 * 
	 */
	public Result() {
		flag = false;
	}
	public Result(boolean f) {
		flag = f;
	}
	public Result(boolean f, Object rtn) {
		flag = f;
		rtnObj = rtn;
	}
	
	/**
	 * 执行结果
	 */
	private boolean flag;
	/**
	 * 返回对象
	 */
	private Object rtnObj;
	public boolean isFlag() {
		return flag;
	}
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	public Object getRtnObj() {
		return rtnObj;
	}
	public void setRtnObj(Object rtnObj) {
		this.rtnObj = rtnObj;
	}

}
